﻿@model MvcJE.Core.Inet.MopInputData
<tr @if (Model != null)
    {
    @:data-pkey="@Model.MopInputDataId"
}>
    <td>
        @Html.EditorFor(model => model.MopModuleId)
        @Html.ValidationMessageFor(model => model.MopModuleId)
    </td>
    <td>
        @Html.EditorFor(model => model.Title)
        @Html.ValidationMessageFor(model => model.Title)
    </td>
    <td>
        @Html.EditorFor(model => model.Data)
        @Html.ValidationMessageFor(model => model.Data)
    </td>
    <td>
        @Html.EditorFor(model => model.DateCreated)
        @Html.ValidationMessageFor(model => model.DateCreated)
    </td>
    <td>
        @if (ViewContext.RouteData.Values["Action"].ToString() == "Edit")
        {
            <button class="editRow">
                Save</button>
            <button class="cancelEditRow">
                    Cancel</button>
        }
        else
        {
            <button class="createRow">
                Create</button>
            <button class="cancelCreateRow">
                    Cancel</button>
        }
    </td>
</tr>
